<?php
class RM_AmenitiesUnits extends RM_Model
{
    protected $_name = 'rm_amenities_units';

    public function  getAll($where = null) {
        $sql = "
            SELECT * FROM $this->_name
        ";
        if ($where !== ""){
            $sql.=" WHERE $where";
        }
        return $this->_getBySQL($sql);
    }
}